package com.ship.dispatch.service;

import com.ship.common.core.web.domain.JsonResult;
import com.ship.dispatch.service.impl.ContractServiceClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = "contract", fallback = ContractServiceClientImpl.class)
@Component
public interface ContractServiceClient {
    @GetMapping("/conTemplate/templateClauseTypes")
    JsonResult<List<Map<String, Object>>> detail(@RequestParam("id") Long id);
}
